import request from '@/utils/http'
// import qs from 'qs'

export function getParkList (params) {
  return request({
    url: '/managementPlatform/getParkList',
    method: 'POST',
    data: params
  })
}

export function getParkTenantSum (params) {
  return request({
    url: '/managementPlatform/getParkTenantSum',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function getTenantCompanyByPark (params) {
  return request({
    url: '/managementPlatform/getTenantCompanyByPark',
    method: 'GET',
    params
  })
}

export function getLeasedCompanyList (params) {
  return request({
    url: '/managementPlatform/getLeasedCompanyList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function getUnleasedFactoryList (params) {
  return request({
    url: '/managementPlatform/getUnleasedFactoryList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}
export function getLeasedFactoryList (params) {
  return request({
    url: '/managementPlatform/getLeasedFactoryList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function getParkListPage (params) {
  return request({
    url: '/managementPlatform/getParkListPage',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}